<?
require("config.php");

//$location_status .= "| List";
$show_backnav = "../user_menu";
$menuname = NULL;
$menutarget = NULL;

$Query = "SELECT 
code,
name 
FROM $table";

$r=myQuery($Query);

require($rela_path . "inc/header.php");

?>
<table width="95%" border="0" align="center">
  <tr> 
    <td valign="top"> <p align="right"><br>
        <br>      <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tb">
        <tr class="tbheader"> <td width="12%">Code</td>
          <td width="57%">Name</td>
          <td width="31%">&nbsp;</td>
        </tr>


<?for ($i=0;$i<count($r);$i++){?>
        <tr class="tbcontent"> 
          <td><?print($r[$i][0])?></td>
          <td><?print($r[$i][1])?></td>
          <td> <div align="center"><a href="#">detail</a> <a href="../edit/user_edit_info.php">edit</a><a href="../delete/user_delete_info.php"> 
              delete</a></div></td>
        </tr>
<?}?>


      </table></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
  <br>
  <br>
  <?
require($rela_path . "inc/footer.php");
?>
</p>
